home *** CD-ROM | disk | FTP | other *** search
/ User's Choice Windows CD / User's Choice Windows CD (CMS Software)(1993).iso / windows5 / winrcs.zip / RCSRUN.BAT < prev    next >
DOS Batch File  |  1992-09-09  |  1KB  |  41 lines

  1. @echo off
  2. rem
  3. rem     RCSRUN.BAT --   Synchronous DOS session batch file for running RCS commands
  4. rem                     from RCS Shell for Windows
  5. rem
  6. rem     Copyright (c) 1992 CustomLogic
  7. rem     All rights reserved
  8. rem     Proprietary information
  9. rem
  10. rem     Written by Jon E. Marinello
  11. rem
  12. rem    *** DO NOT MODIFY THIS FILE ***
  13. rem
  14. rem     %1      CON: send output to console, otherwise send output to %1
  15. rem     %2      CON: input read from console, otherwise read from %2
  16. rem     %3      Contains program name to run
  17. rem     %4-%9   Any parameters to %3
  18. rem
  19. if "%1" == "CON:" goto ConOut
  20. if "%1" == "con:" goto ConOut
  21. echo Output routed to [%1].
  22. if "%2" == "CON:" goto ConIn1
  23. if "%2" == "con:" goto ConIn1
  24. call %3 %4 %5 %6 %7 %8 %9 < %2 > %1
  25. goto RemSem
  26. :ConIn1
  27. call %3 %4 %5 %6 %7 %8 %9 > %1
  28. goto RemSem
  29. :ConOut
  30. if "%2" == "CON:" goto ConIn2
  31. if "%2" == "con:" goto ConIn2
  32. call %3 %4 %5 %6 %7 %8 %9 < %2
  33. goto RemSem
  34. :ConIn2
  35. call %3 %4 %5 %6 %7 %8 %9
  36. goto RemSem
  37. :RemSem
  38. if Exist C:\_WINRCS.WAT pause
  39. del C:\_WINRCS.SEM
  40. if Exist C:\_WINRCS.WAT del C:\_WINRCS.WAT
  41.